<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../css/demo.css" rel="stylesheet" type="text/css" />
<script src="../../js/boot.js" type="text/javascript"></script>
<script src="../../js/mini_common.js" type="text/javascript"></script>
<script src="../../js/goodsClass/goodsClass.js" type="text/javascript"></script>
</head>
<body>
	<h1>商品分类管理</h1>
	<div style="width:100%">
        <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
            <table style="width:100%;">
                <tr>
                    <td style="width:100%;">
                        <a class="mini-button" iconCls="icon-add" onclick="addNewGoodsClass()">添加</a>
                    </td>
                </tr>
            </table>           
        </div>
    </div>
	<div id="datagrid1" class="mini-datagrid" onrowclick="editRow"  showEmptyText="true" emptyText="没有分类数据" url="javascript:getRootPath()+'/rest/goodsClass/list'" style="width: 100%;" idField="id" allowResize="true" sizeList="[20,50,100]" pageSize="20">
		<div property="columns">
			<div field="classId" visible="false"></div>
			<div field="classTypeId" visible="false"></div>
			<div field="classParentId" visible="false"></div>
			<div field="classIcon" visible="false"></div>
			<div field="className"  headerAlign="center"  allowSort="true" >分类名称</div>
			<div field="classTypeName"  headerAlign="center" >所属类型</div>
			<div field="classParentName"  headerAlign="center" >上级分类</div>
			<div field="classRecommend"  headerAlign="center" allowSort="true">是否推荐</div>
			<div field="classLevel"  headerAlign="center" allowSort="true">级次</div>
			<div field="classSequence"  headerAlign="center" allowSort="true">排序位置</div>
			<div field="createTime" headerAlign="center" allowSort="true" dateformat="yyyy-MM-dd HH:mm:ss">新增时间</div>
			<div field="createUser"   headerAlign="center" allowSort="true">操作人</div>
			<div field="updateTime"  headerAlign="center"  allowSort="true" dateformat="yyyy-MM-dd HH:mm:ss">更新时间</div>
			<div field="updateUser" headerAlign="center"  allowSort="true">更新人</div>
			<div field="disabledState"  headerAlign="center" allowSort="true" renderer ="onDataStatus">是否删除</div>
		</div>
	</div>
	<div class="description">
		<h3>蓝鲸科技，科技引领潮流。</h3>
	</div>
	<script>
		mini.parse();
		var TuserID = getCookie("TuserID");
		if(TuserID == null || TuserID ==""){
			alert("您尚未登录，请登录。");
			window.location.href= getRootPath()+"../../pages/access/admin_login.html";
		}else{
			var grid = mini.get("datagrid1");
			var parms = {"userId":TuserID};
	        grid.load(parms);
		}
	</script>
</body>
</html>